package com.txf.simple.ui.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.tang.player.beans.MediaBean;
import com.tang.player.ui.TVideoView;
import com.txf.simple.R;

public class PlayActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_play);
        testVideo();
    }
    private void testVideo() {
        TVideoView mTVideoView = (TVideoView) findViewById(R.id.TVideoView);
        MediaBean bean = new MediaBean();
        bean.setUrl("http://pcvideogs.titan.mgtv.com/mp4/2014/dianying/lmfj_1940/72125E4497A1F1A6D107114F2E0733EF_20140923_1_1_212.mp4?pm=QMR_ObUUjoz8~N_l8Ou49Fx7Q_uZKkUr9aoO0hF_M_cIhKi0Z_o6L8cnYqcMhC9_WKMo0k4Mm3KOb9UaLjwNgpscw47NGyyBXe1PZ9H0gc3UUTvom1_ndUdVBqxIW7A~Ef4iIU7navi7utmqtCSKzrRYZ1ZGjXfucxSLMLBMktE6gyzmR5AABaOn0uJiSnmTcZ8QueMPHgfRmRsLm2XhTOD_I2vGU0eD1kZCzAsvB9pLgSzQbVNrNCiOxgdeJHJFfEGFw4Q0BuBgni8ZNL8ldCwFawHXfr4mbSWpHUvWa7zUrQRa_KSF53wHZ7busHbh0UUH~Hq_R_sW_A7dcMJyGb0TNljV1GdtlKAGSJB7U_o-&arange=0");
        mTVideoView.setData(bean);
    }
}
